﻿@model GameViewModel.Person

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Переименовать</title>
    @Styles.Render("~/Content/mobileCss", "~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    <script>
        $(document).on("mobileinit", function () {
            $.mobile.ajaxEnabled = false;
            $.mobile.theme = "b";
            $.mobile.defaultDialogTransition = "flip";
        });
    </script>
    @Scripts.Render("~/bundles/jquerymobile")
    <script src="@Url.Content("~/Scripts/editperson.js")"></script>
</head>
<body>
    <div id="editPersonDiv" data-role="dialog">
        <div data-role="header">
            <h2>@Html.LabelFor(model => model.Name)</h2>
        </div>
        <div data-role="content">
            @Html.HiddenFor(model => model.Id)
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Name, new { personId = Model.Id })
@*                @Html.ValidationMessageFor(model => model.Name)*@
                <div id="errorHolder" class="input-validation-error" hidden="hidden"></div>
            </div>
        </div>
        <div data-role="footer">
            <a data-rel="save" data-icon="save">Save</a>
            <a data-rel="back" data-icon="back">Go back</a>
        </div>
    </div>
</body>
</html>
